/**
 * Project: complex.java
 * 
 * File Created at 2010-4-13
 * $Id$
 * 
 * Copyright 2008 Alibaba.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Alibaba Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Alibaba.com.
 */
package complex.java.base;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @description:XXX
 * @author gaoliang
 * @date 2010-4-13
 * @version 1.0
 */
public class Tes11 {
    public static void main(String[] args) {
//        System.out.println(args[0]);
//    	List<String> a = new ArrayList<String>();
//    	List<Integer> b = new ArrayList<Integer>();
//    	System.out.println(a.getClass() == b.getClass());
       // Pattern p = Pattern.compile("^(([1-9]{1}\\d{0,7})|([0]{1}))?$");  
        //Pattern p = Pattern.compile("^(([1-9]{1}\d{0,7})|([0]{1}))(\.(\d){1,2})?$");  
       // Pattern p = Pattern.compile("^(([1-9]{1}\\d{0,7})|(([1-9]{1}\\d{0,7})(\\.(\\d){1,2})?)|((0)\\.(0)[1-9])|((0)\\.[1-9][0-9]?))$");  
      //Pattern p = Pattern.compile("^([1-9]{1}\\d{0,7})$");  
      //Pattern p = Pattern.compile("^([1-9]{1}\\d{0,5}\\.\\d)$");  
        
        for(int i=0;i<50;i++){
            
        }
     int i = 1234567890;
     System.out.println("a".getBytes().length);
     String b = Integer.toString(i, 35);
     
     Long j = new Long("123456789012");
     b = Long.toString(j, 35);
     Long k =Long.parseLong(b, 35);
     System.out.println(k.toString());
     Pattern p = Pattern.compile("^((([1-9]{1}\\d{0,7})(\\.(\\d){1,2})?)|((0)\\.(0)[1-9])|((0)\\.[1-9][0-9]?))$");
        
//      //Pattern p = Pattern.compile("^([1-9]{1}\\d{0,4}\\.\\d{2})$");  
//        Matcher m = p.matcher("01.2");  
//        if (m.find()) {
//            System.out.println("ok");
//        }else{
//            System.out.println("err");
//        }
//        String b= "22";
//        String a=null;
//        String c = a+b;
//        System.out.println(c);
////        BigDecimal bi = new BigDecimal("10");
////        BigDecimal cc = bi.setScale(2, BigDecimal.ROUND_HALF_UP);
////        System.out.println(cc);
    }
}
